package com.carl.zlds.service;

import com.carl.zlds.tool.common.PageBO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carl.zlds.model.Article;
import com.carl.zlds.pojo.dto.ArticleSearchDTO;
import com.carl.zlds.pojo.dto.SaveArticleDTO;
import com.carl.zlds.pojo.vo.ArticleVO;

import java.util.List;
import java.util.Map;

/**
 * @author carl
 */
public interface IArticleService extends IService<Article> {

    void saveArticle(Long id, SaveArticleDTO dto);

    void deleteArticle(Long id);

    Map<String, Object> getArticleList(ArticleSearchDTO dto, PageBO pageBO);

    ArticleVO getArticleInfo(Long id);
}
